package com.thwj.project.biz.enums;

/***
 * 通用审核状态
 */
public enum AuditStatusEnum {

    auditing(1,"审核中"),
    auditing_success(2,"审核成功"),
    auditing_fail(3,"审核不通过"),
    ;
    AuditStatusEnum(int value, String name){
        this.name = name;
        this.value = value;
    }

    private int value;
    private String name;

    public int getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

    public static AuditStatusEnum getEnumByValue(Integer value){
        for (AuditStatusEnum typeEnum : AuditStatusEnum.values()) {
            if(typeEnum.value == value) {
                return typeEnum;
            }
        }
        return null;
    }
}
